package com.example.aerospacemanagementsystem.service.personnelService.impl;


import com.example.aerospacemanagementsystem.entity.personnel.Manager;
import com.example.aerospacemanagementsystem.mapper.personnelMapper.ManagerMapper;
import com.example.aerospacemanagementsystem.service.personnelService.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 吴欣悦
* @description 针对表【manager】的数据库操作Service实现
* @createDate 2023-11-03 11:33:13
*/
@Service
public class ManagerServiceImpl implements ManagerService{
    @Autowired
    private ManagerMapper managerMapper;

    @Override
    public int add(Manager manager) {
        return managerMapper.insert(manager);
    }

    @Override
    public int delete(Manager manager) {
        return managerMapper.delete(manager);
    }

    @Override
    public int update(Manager manager) {
        return managerMapper.update(manager);
    }

    @Override
    public List<Manager> getAllManager(Manager manager) {
        return managerMapper.getAllManager(manager);
    }

}




